from django.shortcuts import render

from book.models import Adv, Book


# Create your views here.
def home(request, *args, **kwargs):
    adv_data = Adv.objects.all()
    book_data = Book.objects.all().order_by("-recommend_level")
    return render(request, "book/home.html", locals())
